import unittest

if __name__ == '__main__':
    # 创建测试套件
    suite = unittest.TestSuite()
    
    # 自动发现tests目录下的所有测试
    test_loader = unittest.TestLoader()
    # test_suite = test_loader.discover('tests', pattern='test_*.py')
    test_suite = test_loader.discover('tests', pattern='test_send_command.py')
    
    # 运行测试
    runner = unittest.TextTestRunner(verbosity=2)
    runner.run(test_suite)